import Layout from '@/layout/main';

export default [
  {
    path: '/',
    component: Layout,
    name: 'Home',
    children: [
      {
        path: 'index',
        component: () => import('@/views/main/home/index'),
        name: 'HomeIndex',
        meta: {
          title: '首页',
          roles: ['admin'], // or you can only set roles in sub nav
        },
      },
      {
        path: 'app',
        component: () => import('@/views/main/app/index'),
        name: 'AppIndex',
        meta: {
          title: '应用',
        },
      },
      {
        path: 'project-mng',
        component: () => import('@/views/project/index'),
        name: 'ProjectMng',
        meta: {
          title: '项目管理',
        },
      },
      {
        path: 'form',
        component: () =>
                        import('@/views/project/form'),
        name: 'ProjectMngForm',
        hidden: true,
        meta: { title: '添加项目', icon: 'dashboard', activeMenu: '/project-mng', noCache: true },
      },
      {
        path: 'msg',
        component: () => import('@/views/main/msg/index'),
        name: 'MessageIndex',
        // redirect: '/msg/index',
        meta: {
          title: '消息',
        },
        /* children: [
          {
            path: 'index',
            component: () => import('@/views/main/msg/budget-generation'),
            name: 'budgetGeneration',
            hidden: true,
            meta: {
              title: '预算生成'
            }
          },
          {
            path: 'data-conversion',
            component: () => import('@/views/main/msg/data-conversion'),
            name: 'dataConversion',
            hidden: true,
            meta: {
              title: '数据转换'
            }
          },
          {
            path: 'msg-detail',
            component: () => import('@/views/main/msg/msg-detail'),
            name: 'msgDetail',
            hidden: false,
            meta: {
              title: '消息详情'
            }
          }
        ] */
      },
    ],
  },
];
